home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 102 / CD-ROM 102.iso / aplic / 2sync / 2SyncSetup.exe / modules / sy / panel / scripts / DefineButton2_79 / BUTTONCONDACTION on(release).as < prev    next >
Encoding:
Text File  |  2002-03-20  |  1.2 KB  |  53 lines

  1. on(release){
  2.    set("../:syncDest",_name);
  3.    set("../:syncDestType",eval("../:syncDest").substr("1","1"));
  4.    if(eval("../:syncDestType") == "1" or eval("../:syncDestType") == "3")
  5.    {
  6.       set("../:syncType","1");
  7.    }
  8.    if(int(eval("../:syncDestType")) != "1")
  9.    {
  10.       set("../:syncFrom","3");
  11.       set("../syncFrom:currentFromString","all");
  12.    }
  13.    tellTarget("_level50")
  14.    {
  15.       gotoAndStop("off");
  16.    }
  17.    setProperty("colour", _visible, "0");
  18.    if(iconName ne eval("../:syncDest"))
  19.    {
  20.       tellTarget("../1outlook")
  21.       {
  22.          gotoAndStop("init");
  23.       }
  24.       tellTarget("../2palm")
  25.       {
  26.          gotoAndStop("init");
  27.       }
  28.       tellTarget("../3web")
  29.       {
  30.          gotoAndStop("init");
  31.       }
  32.       tellTarget("../1")
  33.       {
  34.          gotoAndStop("init");
  35.          play();
  36.       }
  37.       tellTarget("../2")
  38.       {
  39.          gotoAndStop("init");
  40.          play();
  41.       }
  42.       tellTarget("../3")
  43.       {
  44.          gotoAndStop("init");
  45.          play();
  46.       }
  47.       gotoAndStop(40);
  48.       set("_level40/sound/lib:sound","253");
  49.       call("_level40/sound/lib:play");
  50.    }
  51.    call("../codelib:checkPrivate");
  52. }
  53.